// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
    const log = cloud.logger();
    try {
        return await cloud.database().collection('musicData').field({
            list: false
        }).get({
                success(res) {
                    return res;
                }
            })
    } catch (error) {
        log.error({
            error
        });
        return error;
    }
}